<template>
	<view class="page-top">
		<view class="status_bar"></view>
		<view class="page-navbar">
			<view class="nav">
				<view class="blackWrap" @tap='goBack'>
					<image src="/static/img/left-arrow.png" mode="" class="blackIcon"></image>
					<view class="text">{{leftText}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				barHeight:''
			}
		},
		computed: {
			
		},
		props:['leftText','goUrl','cik'],
		methods: {
			goIndex() {
				uni.navigateTo({
					url:'/pages/index/index'
				})
			},
			goBack() {
				if(this.cik == 'custerm') {
					this.$emit('custremCik')
				} else {
					const share = this.$Route.query.share;
					if(share) {
						this.$Router.replace('/pages/index/index')
					} else {
						uni.navigateBack();
					}
				}
			}
		}
	}
</script>

<style lang="scss">
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}
	.blackIcon {
		width: 16rpx;
		height: 28rpx;
		margin-right: 20rpx;
	}
	.nav {
		height: 130rpx;
		display: flex;
		padding-top: 30rpx;
	    // align-items: center;
	}
	.text {
		font-size: 32rpx;
		font-weight: bold;
	}
	.page-navbar {
		// position: fixed;
		// top:0;
		// right: 0;
		// left:0;
		// background-color: #f7f7f7;
	}
	.blackWrap{
		height: 100%;
		padding-left: 30rpx;
		@include center();
	}
</style>